package com.jeethink.erp.stockDetail.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

/**
 * 入库单详细信息对象 tb_enter_stock_detail
 * 
 * @author ypr
 * @date 2021-06-01
 */
public class TbEnterStockDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 入库单id */
    @Excel(name = "入库单id")
    private Long enterStockId;

    /** 商品表id */
    @Excel(name = "商品表id")
    private Long commodityId;

    /** 入库商品数量 */
    @Excel(name = "入库商品数量")
    private Long quantity;

    /** 入库商品价格 */
    @Excel(name = "入库商品价格")
    private BigDecimal price;

    /** 是否有发票 0 没有 1 有 */
    private String haveInvoice;

    /** 发票号 */
    private String invoiceNum;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEnterStockId(Long enterStockId) 
    {
        this.enterStockId = enterStockId;
    }

    public Long getEnterStockId() 
    {
        return enterStockId;
    }
    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setHaveInvoice(String haveInvoice) 
    {
        this.haveInvoice = haveInvoice;
    }

    public String getHaveInvoice() 
    {
        return haveInvoice;
    }
    public void setInvoiceNum(String invoiceNum) 
    {
        this.invoiceNum = invoiceNum;
    }

    public String getInvoiceNum() 
    {
        return invoiceNum;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("enterStockId", getEnterStockId())
            .append("commodityId", getCommodityId())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("haveInvoice", getHaveInvoice())
            .append("invoiceNum", getInvoiceNum())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
